import axios from 'axios';

import TransOrderConfig from '../models/TransOrderConfig';
import { TransProductQuery } from '../models/TransOrderList';
import { TransFaceValueQuery, TransNameQuery } from '../models/TransSelectQuery';

export const getProductName = (query: TransNameQuery) => axios.post('/api/v1/platform/product/list', query.body);

export const getAllProductName = (query: TransNameQuery) => axios.post('/api/v1/platform/product/list', query.all);

export const getProductFaceValue = (query: TransFaceValueQuery) => axios.post('/api/v1/platform/productSku/list', query.body);

export const getTransOrderList = (query: TransProductQuery) => axios.post('/api/v1/cardOrder/auth/untreated/list', query.body);

export const transformOrder = (query: TransOrderConfig) => axios.post('/verification/card/user/order/transfer', query.body);
